package com.mankiw.code_generator.entity;

import com.mankiw.code_generator.enums.DataSourceType;
import jakarta.persistence.Entity;
import jakarta.persistence.Table;

@Table(name = "t_dataSource")
@Entity
public class DataSource extends EntityBase{

    public DataSource() {}

    private String DataSourceName;
    private DataSourceType DataSourceType;
    private String address;
    private String databaseName;
    private String serverConfig;
    private String userName;
    private String password;

    public DataSource(String dataSourceName, DataSourceType dataSourceType, String address, String databaseName, String serverConfig, String userName, String password) {
        DataSourceName = dataSourceName;
        DataSourceType = dataSourceType;
        this.address = address;
        this.databaseName = databaseName;
        this.serverConfig = serverConfig;
        this.userName = userName;
        this.password = password;
    }

    public String getDataSourceName() {
        return DataSourceName;
    }

    public void setDataSourceName(String dataSourceName) {
        DataSourceName = dataSourceName;
    }

    public DataSourceType getDataSourceType() {
        return DataSourceType;
    }

    public void setDataSourceType(DataSourceType dataSourceType) {
        DataSourceType = dataSourceType;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getDatabaseName() {
        return databaseName;
    }

    public void setDatabaseName(String databaseName) {
        this.databaseName = databaseName;
    }

    public String getServerConfig() {
        return serverConfig;
    }

    public void setServerConfig(String serverConfig) {
        this.serverConfig = serverConfig;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
